﻿<UserControl x:Class="Apps.Yunwei.Views.ParameterPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <Style TargetType="TextBlock" BasedOn="{StaticResource DefaultTextBlock}">
                <Setter Property="VerticalAlignment" Value="Top"/>
                <Setter Property="TextAlignment" Value="Right"/>
                <Setter Property="Margin" Value="2,6,4,0" />
            </Style>
            <Style TargetType="TextBox" BasedOn="{StaticResource DefaultTextBox}">
                <Setter Property="TextWrapping" Value="Wrap"/>
                <Setter Property="Margin" Value="2,2,0,4" />
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" MinWidth="50"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <TextBlock Text="名称" Margin="2,6,4,0"/>

        <TextBox Name="txtName" Grid.Column="1" Margin="2,2,0,4" IsReadOnly="True"/>
        
        <TextBlock Text="参数" Grid.Row="1" Margin="2,6,4,0"/>
        
        <TextBox Name="txt" Grid.Column="1" Grid.Row="1" Margin="2,2,0,4" MinHeight="150" TextWrapping="Wrap"/>
    </Grid>
</UserControl>
